package com.qlshouyu.gateway.client;
import org.apache.hc.client5.http.impl.classic.CloseableHttpClient;
import org.apache.hc.client5.http.impl.classic.HttpClients;

public class BootgatewayInstance {

    private static CloseableHttpClient client = HttpClients.createDefault();
    private static Bootgateway bootgateway;

    public synchronized static Bootgateway getBootgatewayClient() {
        if (bootgateway == null) {
            bootgateway = new Bootgateway(client);
        }
        return bootgateway;
    }


}
